package com.antd.common.auth.exception;

import lombok.Getter;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * TODO
 *
 * @author 冷言丶冷语
 * @version 1.0
 * @date 2020/9/9 10:30
 */
public class AntdCustomOauthException extends OAuth2Exception {
    @Getter
    private String errorCode;

    public AntdCustomOauthException(String msg) {
        super(msg);
    }

    public AntdCustomOauthException(String msg, String errorCode) {
        super(msg);
        this.errorCode = errorCode;
    }
}
